package com.arvato;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author wangjian (jian.wang@bertelsmann.com.cn)
 * @Date 2016/11/14 15:18
 */
@Controller
public class SampleController {

    @RequestMapping(value="/")
    @ResponseBody
    String index(){
        return "hello";
    }

    @RequestMapping(value="/test")
    @ResponseBody
    String test(){
        return "the test method return";
    }
}
